import xadmin
from .models import City, CityPage, DanceCompany


class CityAdmin(object):
    list_display = ["id", "city_name", "city_url"]
    search_fields = ['city_name', ]


class CityPageAdmin(object):
    list_display = ["id", "city", "page_url"]


class DanceCompanyAdmin(object):
    list_display = ["id", "city_page","title", "lianxiren", "phone"]
    style_fields = {"desc": "ueditor"}


xadmin.site.register(City, CityAdmin)
xadmin.site.register(CityPage, CityPageAdmin)
xadmin.site.register(DanceCompany, DanceCompanyAdmin)
